package pojo;
// Generated 16-Sep-2012 22:30:34 by Hibernate Tools 3.2.1.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Nhanvien implements java.io.Serializable {

    private long id;
    private pojo.Nhanvien nhanvien;
    private pojo.Cuahang cuahang;
    private String tendangnhap;
    private String matkhau;
    private String email;
    private String hoten;
    private String sodienthoai;
    private Date ngaysinh;
    private Date ngaytaotaikhoan;
    private String loaitk;
    private Set hoadons = new HashSet(0);
    private Set nhanviens = new HashSet(0);
    private Set dondathangs = new HashSet(0);
    private Set sanphams = new HashSet(0);
    private Set phieunhapkhos = new HashSet(0);
    private Set phanquyens = new HashSet(0);
    private Set khachhangs = new HashSet(0);
    private Set danhmucsForNguoichinhsuacuoi = new HashSet(0);
    private Set danhmucsForNguoitao = new HashSet(0);

    public Nhanvien() {
    }

    public Nhanvien(long id, pojo.Cuahang cuahang, String tendangnhap, String matkhau, String email, String hoten, String sodienthoai, Date ngaytaotaikhoan) {
        this.id = id;
        this.cuahang = cuahang;
        this.tendangnhap = tendangnhap;
        this.matkhau = matkhau;
        this.email = email;
        this.hoten = hoten;
        this.sodienthoai = sodienthoai;
        this.ngaytaotaikhoan = ngaytaotaikhoan;
    }

    public Nhanvien(long id, pojo.Nhanvien nhanvien, pojo.Cuahang cuahang, String tendangnhap, String matkhau, String email, String hoten, String sodienthoai, Date ngaysinh, Date ngaytaotaikhoan, String loaitk, Set hoadons, Set nhanviens, Set dondathangs, Set sanphams, Set phieunhapkhos, Set phanquyens, Set khachhangs, Set danhmucsForNguoichinhsuacuoi, Set danhmucsForNguoitao) {
        this.id = id;
        this.nhanvien = nhanvien;
        this.cuahang = cuahang;
        this.tendangnhap = tendangnhap;
        this.matkhau = matkhau;
        this.email = email;
        this.hoten = hoten;
        this.sodienthoai = sodienthoai;
        this.ngaysinh = ngaysinh;
        this.ngaytaotaikhoan = ngaytaotaikhoan;
        this.loaitk = loaitk;
        this.hoadons = hoadons;
        this.nhanviens = nhanviens;
        this.dondathangs = dondathangs;
        this.sanphams = sanphams;
        this.phieunhapkhos = phieunhapkhos;
        this.phanquyens = phanquyens;
        this.khachhangs = khachhangs;
        this.danhmucsForNguoichinhsuacuoi = danhmucsForNguoichinhsuacuoi;
        this.danhmucsForNguoitao = danhmucsForNguoitao;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public pojo.Nhanvien getNhanvien() {
        return this.nhanvien;
    }

    public void setNhanvien(pojo.Nhanvien nhanvien) {
        this.nhanvien = nhanvien;
    }

    public pojo.Cuahang getCuahang() {
        return this.cuahang;
    }

    public void setCuahang(pojo.Cuahang cuahang) {
        this.cuahang = cuahang;
    }

    public String getTendangnhap() {
        return this.tendangnhap;
    }

    public void setTendangnhap(String tendangnhap) {
        this.tendangnhap = tendangnhap;
    }

    public String getMatkhau() {
        return this.matkhau;
    }

    public void setMatkhau(String matkhau) {
        this.matkhau = matkhau;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHoten() {
        return this.hoten;
    }

    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    public String getSodienthoai() {
        return this.sodienthoai;
    }

    public void setSodienthoai(String sodienthoai) {
        this.sodienthoai = sodienthoai;
    }

    public Date getNgaysinh() {
        return this.ngaysinh;
    }

    public void setNgaysinh(Date ngaysinh) {
        this.ngaysinh = ngaysinh;
    }

    public Date getNgaytaotaikhoan() {
        return this.ngaytaotaikhoan;
    }

    public void setNgaytaotaikhoan(Date ngaytaotaikhoan) {
        this.ngaytaotaikhoan = ngaytaotaikhoan;
    }

    public String getLoaitk() {
        return this.loaitk;
    }

    public void setLoaitk(String loaitk) {
        this.loaitk = loaitk;
    }

    public Set getHoadons() {
        return this.hoadons;
    }

    public void setHoadons(Set hoadons) {
        this.hoadons = hoadons;
    }

    public Set getNhanviens() {
        return this.nhanviens;
    }

    public void setNhanviens(Set nhanviens) {
        this.nhanviens = nhanviens;
    }

    public Set getDondathangs() {
        return this.dondathangs;
    }

    public void setDondathangs(Set dondathangs) {
        this.dondathangs = dondathangs;
    }

    public Set getSanphams() {
        return this.sanphams;
    }

    public void setSanphams(Set sanphams) {
        this.sanphams = sanphams;
    }

    public Set getPhieunhapkhos() {
        return this.phieunhapkhos;
    }

    public void setPhieunhapkhos(Set phieunhapkhos) {
        this.phieunhapkhos = phieunhapkhos;
    }

    public Set getPhanquyens() {
        return this.phanquyens;
    }

    public void setPhanquyens(Set phanquyens) {
        this.phanquyens = phanquyens;
    }

    public Set getKhachhangs() {
        return this.khachhangs;
    }

    public void setKhachhangs(Set khachhangs) {
        this.khachhangs = khachhangs;
    }

    public Set getDanhmucsForNguoichinhsuacuoi() {
        return this.danhmucsForNguoichinhsuacuoi;
    }

    public void setDanhmucsForNguoichinhsuacuoi(Set danhmucsForNguoichinhsuacuoi) {
        this.danhmucsForNguoichinhsuacuoi = danhmucsForNguoichinhsuacuoi;
    }

    public Set getDanhmucsForNguoitao() {
        return this.danhmucsForNguoitao;
    }

    public void setDanhmucsForNguoitao(Set danhmucsForNguoitao) {
        this.danhmucsForNguoitao = danhmucsForNguoitao;
    }

    @Override
    public String toString() {
        return hoten;
    }
    
}
